<template>
  <div class="workList">
    <el-table :data="tableData" v-loading="loading" border style="width: 100%">
      <el-table-column prop="id" label="用户ID" align="center"> </el-table-column>
      <el-table-column prop="userId" label="所属班级" align="center"> </el-table-column>
      <el-table-column prop="title" label="作业名称" align="center"> </el-table-column>
      <el-table-column prop="complete_text" label="完成情况" align="center"> </el-table-column>
    </el-table>
    <Pagination :total="total" :url="url"></Pagination>
  </div>
</template>

<script>
import Pagination from '../Common/Pageing.vue'
export default {
  data() {
    return {
      tableData: [],
      total: 0,
      loading: true,
      url: '/works',
    }
  },
  components: {
    Pagination,
  },
}
</script>

<style lang="scss">
.workList {
  .el-pagination {
    align-items: center;
    margin-top: 20px;
  }
}
</style>
